import request from '@/utils/request'

// 修改项目配置
export function updateProject(id, data) {
    return request({
        url: '/project/' + id,
        method: 'put',
        data
    })
}

// 获取项目配置
export function getProject() {
    return request({
        url: '/project',
        method: 'get'
    })
}


// 新增字段类型映射
export function saveColumnMap(data) {
    return request({
        url: '/columnMap',
        method: 'post',
        data
    })
}

// 删除字段类型映射
export function removeColumnMap(ids) {
    return request({
        url: '/columnMap/' + ids,
        method: 'delete'
    })
}

// 修改字段类型映射
export function updateColumnMap(id, data) {
    return request({
        url: '/columnMap/' + id,
        method: 'put',
        data
    })
}

// 查询字段类型映射
export function listColumnMap(query) {
    return request({
        url: '/columnMap',
        method: 'get',
        params: query
    })
}
